let baseUrl = ''
let env = process.env.NODE_ENV
// const baseUrl = process.env.NODE_ENV === 'production' ? '' : '/api'
let baseName = ''
let baseNameRouter = ''
let backUrl = ''
if (env == 'production') {
	// 生产环境
	baseUrl = 'https://ygh-api.nbgh.gov.cn/ghwk/';
	baseName = '/ghwkAdmin';
	backUrl = 'https://ygh.nbgh.gov.cn/ghwkClient/#';
	// baseNameRouter = 'ghwkAdmin'
} else if (env == 'pre') {
	// 测试环境
	baseUrl = 'https://ygh-api.nbgh.gov.cn/testghwk/';
	baseName = '/testghwkAdmin';
	backUrl = 'https://ygh.nbgh.gov.cn/testghwkClient/#'
	// baseNameRouter = 'testghwkAdmin'
} else if (env == 'mine') {
	baseUrl = ''
	baseName = '/admin';
	backUrl = 'http://47.99.42.177:8080/h5/#'
	// baseNameRouter = 'admin'
} else {
	// 本地环境
	baseUrl = '/api';
	baseName = '';
	backUrl = 'http://localhost:8888/#'
	// baseNameRouter = 'admin'
}

export default {
	baseUrl,
	baseName,
	baseNameRouter,
	backUrl
}
